<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{% block title %}{% endblock %}</title>
    <link rel="stylesheet" href="{% static 'css/bootstrap.min.css' %}">
    <link rel="stylesheet" href="{% static 'css/base.css' %}">
    <script src="{% static 'js/popper.min.js' %}"></script>
    <script src="{% static 'js/bootstrap.min.js' %}"></script>
    <script src="{% static 'js/wangEditorIndex.js' %}"></script>
    <script src="{% static 'js/index.js' %}"></script>

    <link
            href="{% static 'css/wangEditorStyle.css' %}"
            rel="stylesheet"
    />
    <style>
        #editor—wrapper {
            border: 1px solid #ccc;
            z-index: 100; /* 按需定义 */
        }

        #toolbar-container {
            border-bottom: 1px solid #ccc;
        }

        #editor-container {
            height: 500px;
        }
    </style>
</head>
<body>
<header class="p-3 text-bg-light border-bottom mb-3">
    <div class="container">
        <div class="d-flex flex-wrap align-items-center justify-content-center justify-content-lg-start">
            <a href="/" class="d-flex align-items-center mb-2 mb-lg-0 text-white text-decoration-none">
                <img src="{% static 'img/logo.png' %}" alt="" height="20"> </img>
            </a>

            <ul class="nav col-12 col-lg-auto me-lg-auto mb-2 justify-content-center mb-md-0">
                <li><a href="#" class="nav-link px-2 text-secondary">首页</a></li>
                <li><a href="#" class="nav-link px-2 text-secondary">发布博客</a></li>

            </ul>

            <form class="col-12 col-lg-auto mb-3 mb-lg-0 me-lg-3" role="search">
                <input type="search" class="form-control" placeholder="搜索..." aria-label="Search">
            </form>

            <div class="text-end">
                <button type="button" class="btn btn-primary">登录</button>
                <button type="button" class="btn btn-warning">退出</button>
            </div>
        </div>
    </div>
</header>

<main class="container rounded bg-white p-3">
    <h3>发布博客</h3>
    <div class="mb-3">
        <label for="exampleFormControlInput1" class="form-label">标题</label>
        <input type="text" class="form-control" id="exampleFormControlInput1" placeholder="请输入标题">
    </div>
    <div class="mb-3">
        <label for="exampleFormControlTextarea1" class="form-label">分类</label>
        <select class="form-select" aria-label="Default select example">
            <option selected>请选择分类</option>
            <option value="1">前端</option>
            <option value="2">后端</option>
            <option value="3">python</option>
        </select>
    </div>
    <div class="mt-2">
        <label for="exampleFormControlTextarea1" class="form-label">正文</label>
        <div id="editor—wrapper">
            <div id="toolbar-container"><!-- 工具栏 --></div>
            <div id="editor-container"><!-- 编辑器 --></div>
        </div>
    </div>
    <div class="mt-2 d-flex justify-content-end">
        <button type="button" class="btn btn-primary">发布</button>
    </div>
</main>

</body>
</html>





